package com.yjd.comm.spread.service;

import java.util.Map;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.spread.model.SpreadRewardCountModel;
import com.yjd.comm.spread.model.SpreadRewardModel;

/**
 * <b>description</b>：人人推广奖励业务接口<br>
 * <b>time</b>：2015-10-09 15:01:09 <br>
 * <b>author</b>：  SongJian
 */
public interface ISpreadRewardService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public SpreadRewardModel insert(SpreadRewardModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(SpreadRewardModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long id) throws Exception;
	
	/**
	 * 根据id 领取
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int revice(Long id) throws Exception;
	
	/**
	 * 统计 总金额、投资人数、受益人数
	 * @param param
	 * @return
	 * @throws Exception
	 */
	public SpreadRewardCountModel getSpreadRewardCount(Map<String, Object> param)throws Exception;
	
}
